import request from "@/utils/request";

export function accountApply(data) {
  return request({
    url: "/sea/media",
    method: "post",
    data,
  });
}

export function getAnonymousList(noticeType) {
  return request({
    url: "/system/notice/anonymousList?noticeType=" + noticeType,
    method: "get",
  });
}
// 开户记录
export function getAccountRecordList(params) {
  return request({
    url: "/sea/media/anonymousList",
    method: "get",
    params,
  });
}
// 获取详情接口
export function getApplyAccountDetail(id) {
  return request({
    url: `/sea/media/getById/${id}`,
    method: "get",
  });
}

export function editApplyAccount(data) {
  return request({
    url: "/sea/media",
    method: "put",
    data,
  });
}
//  公告详情
export function getNoticeDetail(id) {
  return request({
    url: `/system/notice/getById/${id}`,
    method: "get",
  });
}
//账户列表
export function getAccountList(params) {
  return request({
    url: "/sea/media/mediaDailylist",
    method: "get",
    params,
  });
}
// 获取审核的数量
export function getApprovalOverview() {
  return request({
    url: "/sea/media/getApprovalOverview",
    method: "get",
  });
}
